import { createApp } from 'vue'
import 'amfe-flexible'
import './assets/sass/index.scss'
import 'vant/es/toast/style'
import 'vant/es/dialog/style'
import App from './App.vue'
import router from './router'
import NoRecord from '@/components/NoRecord.vue'
import ComNavBar from '@/components/NavBar.vue'
import i18nPlugin from '@voerkai18n/vue'
// 导入当前作用域
import { i18nScope } from '@/languages'

const app = createApp(App)



i18nScope.ready(()=>{
  const app = createApp(App)
  // 应用插件
  app.use(i18nPlugin,{
      i18nScope
  })
  app.component('ComNavBar', ComNavBar)
  app.component('NoRecord', NoRecord)
  app.use(router).mount('#app')
})



